package com.teacher.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.teacher.pojo.dto.carpoolPost.CarpoolPostDto;
import com.teacher.pojo.entity.CarpoolPost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teacher.pojo.vo.carpoolPost.CarpoolPostVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangzhuohang
 * @since 2024-03-14
 */
public interface CarpoolPostMapper extends BaseMapper<CarpoolPost> {

    IPage<CarpoolPostVo> getCarpoolPostPageData(Page page, @Param("dto")CarpoolPostDto pageVo);

    IPage<CarpoolPostVo> getOwnCarpoolPost(Page page, @Param("dto")CarpoolPostDto pageVo);
}
